package me.a_littlesquid.origin.items;

import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

import java.util.ArrayList;
import java.util.List;

import static org.bukkit.enchantments.Enchantment.FIRE_ASPECT;


public class my {
    public static ItemStack getsword(){
        ItemStack sword=new ItemStack(Material.DIAMOND_SWORD);
        ItemMeta meta= sword.getItemMeta();
        meta.addEnchant(FIRE_ASPECT,1,true);
        meta.setUnbreakable(true);
        sword.setItemMeta(meta);
        return sword;
    }
    public static  ItemStack getpearl(){
        ItemStack pearl=new ItemStack(Material.ENDER_PEARL);
        ItemMeta itemMeta=pearl.getItemMeta();
        itemMeta.setDisplayName(ChatColor.GOLD+"无限珍珠");
        List<String> lore=new ArrayList<>();
        lore.add(ChatColor.AQUA+"似乎永远也消耗不完的末影珍珠");
        itemMeta.setLore(lore);
        itemMeta.setUnbreakable(true);
        pearl.setItemMeta(itemMeta);
        return pearl;
    }
}
